/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include <threads/threads.h>
#include <time.h>
#include <pthread.h>
#include <unistd.h>

namespace liba
{
namespace threads
{

void sleep(int time_ms)
{
	usleep( time_ms * 1000 );
}

__int64 get_precise_tick_count()
{
	return clock();
}

double get_precise_tick_time()
{
	return 1.0/CLOCKS_PER_SEC;
}

} //namespace threads
} //namespace liba

